package com.example.day07_zhongji.not;

import com.example.day07_zhongji.bean.ListBean;
import com.example.day07_zhongji.bean.TreBean;
import com.example.day07_zhongji.bean.WorkBean;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

public interface ApiService {
    String work="https://gitee.com/ccyy2019/server/";
    @GET("raw/master/workbook")
    Observable<WorkBean> getdta();
    //https://www.wanandroid.com/project/list/1/json?cid=294
    //https://www.wanandroid.com/project/tree/json
    String list="https://www.wanandroid.com/project/";
    @GET("list/{page}/json")
    Observable<ListBean> getdata(@Path("page")int page, @Query("cid") int cid);
    @GET("tree/json")
    Observable<TreBean> getdata();
}
